<extend name="Base/common"/>
<block name="body">
<body style="background:#faf8f8;">
<style type="text/css">

    .xdsoft_datetimepicker{ width: 90%; height: 35%;}
	.StudyHead div.f-fl p{font-size: 28px;margin-top: 0px;color:#999999;height: 40px;line-height:40px;}
	.StudyHead div.f-fl h1 {font-size: 30px;color:#333333;}
	.StudyHead div.f-fl {margin: 20px 0 0 20px;}
	.StudyHead div.f-fl p img {
    margin: 0px 10px -1px 0px;
	}
	.StudyHead div.f-fl h1 span {
	color:#ffad30;
    font-size: 25px;
}

	.StudyHead {
   
    margin:0;
}
.newheader{height:20px;width:100%;background:#faf8f8;border-bottom:1px solid #EFEEEE;}
.newbox{margin:0 20px;}
.StudyHead a.f-fl {
    margin: 20px 0 0 0;
}
#myClass-Study p.Head {
    padding: 20px 0;
	border-bottom:1px solid #EFEEEE;
}
#myClass-Study .listMOr li {
    margin: 0;
    width: 100%;
    border: 0;
    font-size: 28px;
    border-bottom: 1px solid #EFEEEE;
    padding: 20px 0;
    float: right;
    margin: 0;
}

#myClass-Study .newli a {
    padding: 0px 15px 2px;
    background: #ffa721;
    color: #fff;
    font-size: 20px;
    border-radius: 3px;
}

#myClass-Study .newli a.Bac {
    background: #1dce79;
    position: relative;
    color: #fff;
    font-size: 20px;
    border-radius: 3px;
}

#myClass-Study .newli div.over a {
    text-align: center;
    height: 46px;
    line-height: 46px;
    padding: 0;
    display: inline-block;
	width: 30%;
	margin:0 5% 20px 0%;
	float:left;
}


#myClass-Study .newli .Head{
	margin:20px 0;
	border:none;
}

#myClass-Study .newli a.Bac img.pos {
    position: absolute;
    top: -5px;
    right: -5px;
}


.StudyHead div.f-fl img.posi {
    right: -60px;
}

#myClass-Study .newli a.Add {
    background: #faf8f8;
    color: #999;
    font-size: 20px;
}

#myClass-Study .newli a.NoAc {
    background: #ffa721;
}

#myClass-Study .listMOr li a {
    padding: 5px 25px;
}

.renzheng{    
	position: relative;
    margin-top: 20px;
    height: 152px;}
	
.renzheng h1{
color: #ffad30;
    font-size: 28px;
}	

.renzheng img{position: absolute;
    right: 0;
    bottom: 10px;
	}
.StudyHead div.f-fl p {margin-top:5px;}	
    </style>
        <!--首页-->
        <div id="myClass-Study">
            <header><a href="{:U('Mycourse/course')}" class="back"><img src="__IMG__/images/back_03.png"/></a>要学的</header>
                <div class="IndexList">
					<div class="newheader"></div>
					<div class="newbox">
                        <div class="StudyHead">
                            <div class="per">
                                <a href="#" class="f-fl"><img src="__ROOT__{$data.logo|getimg=###}"/></a>
                                <div class="f-fl">
                                    <h1>{$data.nickname}<if condition="$data['sex'] eq 1 "><img src="__IMG__/images/nan_03.png"/><else /><img src="__IMG__/images/girl_03.png"/></if><span>{$data.salary}元/小时</span></h1>
                                    <p><img src="__IMG__/images/idxe_24.jpg"/> 授课: {$data.title}</p>
                                    <p><img src="__IMG__/images/idxe_27.jpg"/>地址: {$data.area_id|getParentArea=###}{$data.area_id|getArea=###}</p>
                                    <eq name="data.passed" value="1"><img src="__IMG__/images/idxe_21.jpg"/ class="posi"></eq>
                                </div>
                                <div class="clear"></div>
                            </div>
                        </div>
                    <ul class="listMOr listlinone" >
                        <li >
                            <p><span class="f-fl">评价</span></p>
                            <div class="chat">
							
								<div class="f-fr">

                                <span href="#" class="F_l f-fl"><img width="90" height="80" src="__ROOT__{$eva.logo|getimg=###}"/></span>

                                    <h4>{$eva.nickname}

                                        <?php echo str_repeat("<img src='__IMG__/images/Star11_11.jpg'/>",$eva['star']);?>

                                        <?php echo str_repeat("<img src='__IMG__/images/Star11_14.jpg'/>",5 - $eva['star']);?>

                                        <span>{$eva.time|date="Y-m-d H:i:s",###}</span>

                                    </h4>

                                    <p>

                                        <volist name="eva['labels']" id="v">

                                           <span>{$v|getItemTitle='labels',###}</span>

                                        </volist>

                                    </p>

                                    <p>{$eva.comment}</p>

                                    <input type="hidden" name="course_id" value="{$eva.course_id}">
                                    <strong class="button-click">删除评论</strong>
                                    <input type="hidden" name="com_id" value="{$eva.id}">
                                    <notempty name="reply">
                                    <h5><span>({$reply.nickname})老师的回复：</span>{$reply.comment}</h5>
                                    </notempty>

                                </div>
							
							
                                <!-- <span href="#" class="F_l f-fl" style="margin-left: 22px"><img width="90" height="80" src="__ROOT__{$eva.logo|getimg=###}"/></span>
                                <div class="f-fr">
                                    <h4>{$eva.nickname}
                                        <?php echo str_repeat("<img src='__IMG__/images/Star11_11.jpg'/>",$eva['star']);?>
                                        <?php echo str_repeat("<img src='__IMG__/images/Star11_14.jpg'/>",5 - $eva['star']);?>
                                        <span>{$eva.time|date="Y-m-d",###}</span>
                                    </h4>
                                    <p>
                                        <volist name="eva['labels']" id="v">
                                           <span>{$v|getItemTitle='labels',###}</span>
                                        </volist>
                                    </p>
                                    <p>{$eva.comment}</p>
                                   
                                    <input type="hidden" name="course_id" value="{$eva.course_id}">
                                    <strong class="button-click">删除评论</strong>
                                    <input type="hidden" name="com_id" value="{$eva.id}">
                                    <notempty name="reply">
                                    <h5><span>({$reply.nickname})老师的回复：</span>{$reply.comment}</h5>
                                    </notempty>
                                </div> -->
                                <div class="clear"></div>
                            </div>
                            <div class="clear"></div>
                        </li>
					</ul>
                        <div class="newli">
                            <p class="Head" style="padding: 0px">课程安排</p>
                            <div class="over" >
                                <volist name="time" id="vol" mod='3'><a href="###" class="Bac" style='<eq name="mod" value="2">margin:0 0 20px 0;</eq>'>{$vol.class_date|date="Y-m-d H:i:s",###}<img src="__IMG__/images/studyImg_03.png" class="pos"/></a>
                                </volist>
                            </div>
                            <div class="clear"></div>
                        </div>
                </div>
            </div>
        </div>
   <script type="text/javascript">
    $('.button-click').on('click',function(){
      var course_id  = $(this).prev('input[name=course_id]').val();
      // var com_uid  = $(this).prev('input[name=com_uid]').val();
      var com_id = $(this).next('input[name=com_id]').val();
      $.ajax({
            url: "{:U('CourseEva/courseAjax')}",
            type: 'POST',
            dataType: 'json',
            // data: {course_id: course_id,com_uid:com_uid},
            data: {com_id:com_id,course_id:course_id},
            success:function(data){
                if (data == true) {
                    layer.msg('删除成功', {time:2000});
                } else {
                    layer.msg('删除失败', {time:2000});
                }
                location.href="__MODULE__/Mycourse/course";
            }
        });
    });
    </script>
    </body>
</block>